package com.ybwh.springboot2.util;

import org.slf4j.helpers.MessageFormatter;

/**
 * @author fanbeibei
 * @version 1.0
 * @date 2020/10/16 14:46
 */
public class MessageFormatUtil {

    private MessageFormatUtil() {
    }


    public static String format(String messagePattern, Object... args) {
        return MessageFormatter.arrayFormat(messagePattern, args).getMessage();
    }


    public static void main(String[] args) {
        System.out.println(format(" {} &&&&& {} ",342423,464645));
    }


}
